#ifndef crc_info_h__
#define crc_info_h__

#include <QString>
#include <QMap>


struct crc_info
{
	enum bits {bits16, bits32} bitsize;
	union
	{
		struct{
			short truncated_polynominal;
			short initial_remainder;
			short final_xor_value;
		} crc16;

		struct{
			long truncated_polynominal;
			long initial_remainder;
			long final_xor_value;
		} crc32;

	};
	bool reflect_input;
	bool reflect_remainder;
};

typedef QMap<QString, crc_info> CRC_CONTAINER;

#endif // crc_info_h__
